package com.example.myapp.ui.components

import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier

/**
 * 全屏Scaffold，完全移除所有系统padding
 * 适用于游戏、视频播放器等需要全屏显示的页面
 */
@Composable
fun FullScreenScaffold(
    modifier: Modifier = Modifier,
    content: @Composable () -> Unit
) {
    Scaffold(
        modifier = modifier.fillMaxSize(),
        contentWindowInsets = WindowInsets(0, 0, 0, 0)
    ) {
        content()
    }
}

/**
 * 沉浸式全屏Scaffold，适用于需要隐藏状态栏和导航栏的页面
 */
@Composable
fun ImmersiveFullScreenScaffold(
    modifier: Modifier = Modifier,
    content: @Composable () -> Unit
) {
    Scaffold(
        modifier = modifier.fillMaxSize(),
        contentWindowInsets = WindowInsets(0, 0, 0, 0)
    ) {
        content()
    }
} 